package top.ltc_cn.minecraft_manager.repository.main;

import org.springframework.data.jpa.repository.JpaRepository;
import top.ltc_cn.minecraft_manager.entity.main.UserInfo;

import java.util.Optional;

/**
 * Copyright (c) 2024 Xiaoyangcc. All rights reserved.
 * <p>
 * This file is part of the ltc-cn-springboot project.
 * <p>
 * ltc-cn-springboot is distributed under the terms of the MIT License.
 * For details, see the accompanying LICENSE file or visit:
 * <a href="https://www.ltc-cn.top/project/ltc-cn-springboot">...</a>
 */

public interface UserInfoRepository extends JpaRepository<UserInfo, Long> {
    UserInfo id(Long id);

    Optional<UserInfo> findById(Long id);
    Optional<UserInfo> findByUsername(String username);
    Optional<UserInfo> findByEmail(String email);
}
